import request from '@/utils/request'

// 查询发票扣款列表
export function listInvoiceDeduction(query) {
  return request({
    url: '/cld/invoiceDeduction/list',
    method: 'get',
    params: query
  })
}

// 查询发票扣款详细
export function getInvoiceDeduction(invoiceDeductionId) {
  return request({
    url: '/cld/invoiceDeduction/' + invoiceDeductionId,
    method: 'get'
  })
}

// 新增发票扣款
export function addInvoiceDeduction(data) {
  return request({
    url: '/cld/invoiceDeduction',
    method: 'post',
    data: data
  })
}

// 修改发票扣款
export function updateInvoiceDeduction(data) {
  return request({
    url: '/cld/invoiceDeduction',
    method: 'put',
    data: data
  })
}

// 删除发票扣款
export function delInvoiceDeduction(invoiceDeductionId) {
  return request({
    url: '/cld/invoiceDeduction/' + invoiceDeductionId,
    method: 'delete'
  })
}
